/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.grouporders.entity;

import com.jeeplus.modules.grouprecord.entity.GroupRecord;
import com.jeeplus.modules.member.entity.Member;
import java.util.Date;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import com.jeeplus.modules.sessions.entity.Sessions;

/**
 * 拼团订单Entity
 * @author w
 * @version 2021-01-26
 */
public class GroupOrders extends DataEntity<GroupOrders> {
	
	private static final long serialVersionUID = 1L;
	private GroupRecord groupRecord;		// 对应拼团记录
	private Member member;		// 拼团用户
	private String prizeFlag;		// 是否中奖（0否1是）
	private String orderNo;		// 订单编号
	private String orderStatus;		// 订单状态    0未开奖1已开奖2已返还3已发货
	private String expressName;		// 快递公司
	private String expressNo;		// 快递编号
	private String address;		// 收货地址
	private Date beginCreateDate;		// 开始 创建时间
	private Date endCreateDate;		// 结束 创建时间
	private Date beginUpdateDate;		// 开始 更新时间
	private Date endUpdateDate;		// 结束 更新时间

	private Double money;  //订单金额

	//前端订单列表展示用   状态 0未中奖1中奖2返还
	private String gStatus;

	//前端订单列表展示用   购买时间
	private String boughtTime;

	//前端订单列表展示用   场次实体
	private Sessions sessions;

	//前端订单详情展示用   返利金额
	private Double returnMoney;
	
	public GroupOrders() {
		super();
	}

	public GroupOrders(String id){
		super(id);
	}

	@ExcelField(title="对应拼团记录", fieldType=GroupRecord.class, value="groupRecord.percentNo", align=2, sort=1)
	public GroupRecord getGroupRecord() {
		return groupRecord;
	}

	public void setGroupRecord(GroupRecord groupRecord) {
		this.groupRecord = groupRecord;
	}
	
	@ExcelField(title="拼团用户", fieldType=Member.class, value="member.loginName", align=2, sort=2)
	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}
	
	@ExcelField(title="是否中奖（0否1是）", dictType="yes_no", align=2, sort=3)
	public String getPrizeFlag() {
		return prizeFlag;
	}

	public void setPrizeFlag(String prizeFlag) {
		this.prizeFlag = prizeFlag;
	}
	
	@ExcelField(title="订单编号", align=2, sort=10)
	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	
	@ExcelField(title="订单状态", dictType="orders_status", align=2, sort=11)
	public String getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(String orderStatus) {
		this.orderStatus = orderStatus;
	}
	
	@ExcelField(title="快递公司", align=2, sort=12)
	public String getExpressName() {
		return expressName;
	}

	public void setExpressName(String expressName) {
		this.expressName = expressName;
	}
	
	@ExcelField(title="快递编号", align=2, sort=13)
	public String getExpressNo() {
		return expressNo;
	}

	public void setExpressNo(String expressNo) {
		this.expressNo = expressNo;
	}
	
	@ExcelField(title="收货地址", align=2, sort=14)
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	public Date getBeginCreateDate() {
		return beginCreateDate;
	}

	public void setBeginCreateDate(Date beginCreateDate) {
		this.beginCreateDate = beginCreateDate;
	}
	
	public Date getEndCreateDate() {
		return endCreateDate;
	}

	public void setEndCreateDate(Date endCreateDate) {
		this.endCreateDate = endCreateDate;
	}
		
	public Date getBeginUpdateDate() {
		return beginUpdateDate;
	}

	public void setBeginUpdateDate(Date beginUpdateDate) {
		this.beginUpdateDate = beginUpdateDate;
	}
	
	public Date getEndUpdateDate() {
		return endUpdateDate;
	}

	public void setEndUpdateDate(Date endUpdateDate) {
		this.endUpdateDate = endUpdateDate;
	}

	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	public String getgStatus() {
		return gStatus;
	}

	public void setgStatus(String gStatus) {
		this.gStatus = gStatus;
	}

	public String getBoughtTime() {
		return boughtTime;
	}

	public void setBoughtTime(String boughtTime) {
		this.boughtTime = boughtTime;
	}

	public Sessions getSessions() {
		return sessions;
	}

	public void setSessions(Sessions sessions) {
		this.sessions = sessions;
	}

	public Double getReturnMoney() {
		return returnMoney;
	}

	public void setReturnMoney(Double returnMoney) {
		this.returnMoney = returnMoney;
	}
}